//
// Created by shikaisong on 2022/4/4.


#include "calibrate.h"

gimbal_cali_t Gimbal_cail={
        .yaw_offset=Yaw_Center_Offset,
        .pit_offset=Pitch_Center_Offset,
        .calied_flag=CALIED_FLAG,
};

void calibrated(void)
{
    Gimbal.pit_offset_angle=Gimbal_cail.pit_offset;
    Gimbal.yaw_offset_angle=Gimbal_cail.yaw_offset;
    Gimbal_cail.calied_flag=1;

}